package com.zqx.builder.client;

import com.zqx.builder.builder.ActorBuilder;
import com.zqx.builder.controller.ActorController;
import com.zqx.builder.productobject.Actor;
import com.zqx.builder.utils.XMLUtil;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Client {

    public static void main(String[] args) {
        ActorBuilder ab = (ActorBuilder)XMLUtil.getBean();

        ActorController ac = new ActorController();
        Actor actor = ac.construct(ab);
        String type = actor.getType();
        log.info("角色类型,{}",type);
        String sex = actor.getSex();
        log.info("性别,{}",sex);
        String face = actor.getFace();
        log.info("脸,{}",face);
        String costume = actor.getCostume();
        log.info("服装,{}",costume);
        String hairstyle = actor.getHairstyle();
        log.info("发型,{}",hairstyle);
    }
}
